package org.byqh.dqeai.entity.proxy;

import com.easy.query.core.expression.parser.core.available.TableAvailable;
import com.easy.query.core.proxy.AbstractProxyEntity;
import com.easy.query.core.proxy.SQLColumn;
import com.easy.query.core.proxy.SQLSelectAsExpression;
import com.easy.query.core.proxy.fetcher.AbstractFetcher;
import com.easy.query.core.proxy.core.EntitySQLContext;
import org.byqh.dqeai.entity.EaiSysBusinessCategory;
import com.easy.query.core.proxy.columns.types.SQLStringTypeColumn;
import com.easy.query.core.proxy.columns.types.SQLLocalDateTimeTypeColumn;

/**
 * this file automatically generated by easy-query, don't modify it
 * 当前文件是easy-query自动生成的请不要随意修改
 * 如果出现属性冲突请使用@ProxyProperty进行重命名
 *
 * @author easy-query
 */
public class EaiSysBusinessCategoryProxy extends AbstractProxyEntity<EaiSysBusinessCategoryProxy, EaiSysBusinessCategory> {

    private static final Class<EaiSysBusinessCategory> entityClass = EaiSysBusinessCategory.class;

    public static final EaiSysBusinessCategoryProxy TABLE = createTable().createEmpty();

    public static EaiSysBusinessCategoryProxy createTable() {
        return new EaiSysBusinessCategoryProxy();
    }

    public EaiSysBusinessCategoryProxy() {
    }

    /**
     * {@link EaiSysBusinessCategory#getCategoryId}
     */
    public SQLStringTypeColumn<EaiSysBusinessCategoryProxy> categoryId() {
        return getStringTypeColumn("categoryId");
    }

    /**
     * {@link EaiSysBusinessCategory#getCategoryName}
     */
    public SQLStringTypeColumn<EaiSysBusinessCategoryProxy> categoryName() {
        return getStringTypeColumn("categoryName");
    }

    /**
     * {@link EaiSysBusinessCategory#getParentCategoryId}
     */
    public SQLStringTypeColumn<EaiSysBusinessCategoryProxy> parentCategoryId() {
        return getStringTypeColumn("parentCategoryId");
    }

    /**
     * 创建日期
     * {@link EaiSysBusinessCategory#getCreateDate}
     */
    public SQLLocalDateTimeTypeColumn<EaiSysBusinessCategoryProxy> createDate() {
        return getLocalDateTimeTypeColumn("createDate");
    }

    /**
     * {@link EaiSysBusinessCategory#getCreateUserId}
     */
    public SQLStringTypeColumn<EaiSysBusinessCategoryProxy> createUserId() {
        return getStringTypeColumn("createUserId");
    }

    /**
     * 最后更新的日期
     * {@link EaiSysBusinessCategory#getUpdateDate}
     */
    public SQLLocalDateTimeTypeColumn<EaiSysBusinessCategoryProxy> updateDate() {
        return getLocalDateTimeTypeColumn("updateDate");
    }

    /**
     * {@link EaiSysBusinessCategory#getUpdateUserId}
     */
    public SQLStringTypeColumn<EaiSysBusinessCategoryProxy> updateUserId() {
        return getStringTypeColumn("updateUserId");
    }

    @Override
    public Class<EaiSysBusinessCategory> getEntityClass() {
        return entityClass;
    }

    /**
     * 数据库列的简单获取
     *
     * @return
     */
    public EaiSysBusinessCategoryProxyFetcher FETCHER = new EaiSysBusinessCategoryProxyFetcher(this, null, SQLSelectAsExpression.empty);

    public static class EaiSysBusinessCategoryProxyFetcher extends AbstractFetcher<EaiSysBusinessCategoryProxy, EaiSysBusinessCategory, EaiSysBusinessCategoryProxyFetcher> {

        public EaiSysBusinessCategoryProxyFetcher(EaiSysBusinessCategoryProxy proxy, EaiSysBusinessCategoryProxyFetcher prev, SQLSelectAsExpression sqlSelectAsExpression) {
            super(proxy, prev, sqlSelectAsExpression);
        }

        /**
         * {@link EaiSysBusinessCategory#getCategoryId}
         */
        public EaiSysBusinessCategoryProxyFetcher categoryId() {
            return add(getProxy().categoryId());
        }

        /**
         * {@link EaiSysBusinessCategory#getCategoryName}
         */
        public EaiSysBusinessCategoryProxyFetcher categoryName() {
            return add(getProxy().categoryName());
        }

        /**
         * {@link EaiSysBusinessCategory#getParentCategoryId}
         */
        public EaiSysBusinessCategoryProxyFetcher parentCategoryId() {
            return add(getProxy().parentCategoryId());
        }

        /**
         * 创建日期
         * {@link EaiSysBusinessCategory#getCreateDate}
         */
        public EaiSysBusinessCategoryProxyFetcher createDate() {
            return add(getProxy().createDate());
        }

        /**
         * {@link EaiSysBusinessCategory#getCreateUserId}
         */
        public EaiSysBusinessCategoryProxyFetcher createUserId() {
            return add(getProxy().createUserId());
        }

        /**
         * 最后更新的日期
         * {@link EaiSysBusinessCategory#getUpdateDate}
         */
        public EaiSysBusinessCategoryProxyFetcher updateDate() {
            return add(getProxy().updateDate());
        }

        /**
         * {@link EaiSysBusinessCategory#getUpdateUserId}
         */
        public EaiSysBusinessCategoryProxyFetcher updateUserId() {
            return add(getProxy().updateUserId());
        }

        @Override
        protected EaiSysBusinessCategoryProxyFetcher createFetcher(EaiSysBusinessCategoryProxy cp, AbstractFetcher<EaiSysBusinessCategoryProxy, EaiSysBusinessCategory, EaiSysBusinessCategoryProxyFetcher> prev, SQLSelectAsExpression sqlSelectExpression) {
            return new EaiSysBusinessCategoryProxyFetcher(cp, this, sqlSelectExpression);
        }
    }
}
